package cn.kinoko.model.auth.req;

import cn.kinoko.common.constant.RegexpConstant;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @author kk
 */
@Data
public class ResetPwdReq {

    @Pattern(regexp = RegexpConstant.EMAIL, message = "邮箱格式错误")
    private String email;

    @Pattern(regexp = RegexpConstant.PASSWORD, message = "密码格式错误")
    @NotBlank(message = "请填写新密码")
    private String newPwd;

    @NotBlank(message = "请输入邮箱验证码")
    private String emailCode;

}
